{{extend "charts_layout.html"}}

{{block menu}}
{{menu('charts')}}
{{end}}

{{block sub_menu}}
{{sub_menu(menu_items, 'plan', 'project_delay','project_dalay_list')}}
{{end}}

{{block content_main}}
{{use "jquery"}}
{{use "jqpagination"}}
{{use "jsquery"}}
{{use "fgbutton"}}


<script type="text/javascript">
    $(function(){
        var width = $(window).width() - 300;
        $('#content_main').width(width);
    });
</script>        
<div id="content_main" class="box" style="overflow-x:auto;padding-bottom:20px;">        
{{embed table}}
</div>
<div id="pagination" class="right"></div>
<div class="left">共有：<font color="red">{{=info['total']}}</font> 条记录</div>
<div class="left">&nbsp;<a id="download" href="#"><img src="{{=url_for_static('images/csv.png')}}" title="下载"/></a></div>        
<div class="clear"></div>
<script type="text/javascript">
$(function(){
    var query_string = $.query.set('download', '').toString();
    $('#download').click(function(){
        window.location = query_string;
        return false;
    });
});
</script>



{{end}}
